<%@ Page Language="C#" MasterPageFile="~/Install/Install.Master" CodeBehind="Default.aspx.cs" Inherits="Impact.Web.Install.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div id="installer" style="padding: 30px;">

    <asp:Panel ID="Step1" CssClass="Step" Visible="false" runat="server">
        <div style="text-align: center;">
        
            <h2>Welcome to Impact!</h2>
       
            <p>This wizard will guide you through the set up of Impact for use.</p>
        
            <asp:Button ID="step1NextButton" Text="Next &gt;" OnCommand="FormCommand" CommandName="NextStep" runat="server" />        
        
        </div>
    </asp:Panel>
    
    <asp:Panel ID="Step2" CssClass="Step" Visible="false" runat="server">
        <div style="text-align: center;">
            <h3>Administrator Account</h3>
            
            <p>Create an initial user account for the administrator of Impact to use.<br />
            Once installed, the Administrator can create more user accounts.</p>
            
            <table style="width: 250px; margin-left: auto; margin-right: auto; margin-bottom: 20px;">
                <tr>
                    <td>Username:<asp:RequiredFieldValidator ID="usernameRequired" ValidationGroup="Step2" ControlToValidate="username" ErrorMessage="*" EnableClientScript="false" runat="server" /></td>
                    <td><asp:TextBox ID="username" runat="server" /></td>
                </tr>
                <tr>
                    <td>Password: <asp:RequiredFieldValidator ID="passwordRequired" ValidationGroup="Step2" ControlToValidate="password" ErrorMessage="*" EnableClientScript="false" runat="server" /></td>
                    <td><asp:TextBox ID="password" TextMode="Password" runat="server" /></td>
                </tr>
                
                <tr>
                    <td>Confirm: 
                        <asp:CompareValidator id="passwordValidation" ValidationGroup="Step2" ControlToValidate="passwordConfirm"
                             ControlToCompare="password" runat="server" ErrorMessage="*" />
                        <asp:RequiredFieldValidator ID="passwordConfirmRequired" ValidationGroup="Step2" ControlToValidate="passwordConfirm" ErrorMessage="*" EnableClientScript="false" runat="server" />
                    </td>
                    <td><asp:TextBox ID="passwordConfirm" TextMode="Password" runat="server" /></td>
                </tr>
                <tr>
                    <td>Email:<asp:RequiredFieldValidator ID="emailRequired" ValidationGroup="Step2" ControlToValidate="email" ErrorMessage="*" EnableClientScript="false" runat="server" /></td>
                    <td><asp:TextBox ID="email" runat="server" /></td>
                </tr>
            </table>
            
            <asp:Button ID="step2NextButton" Text="Create &gt;" OnCommand="FormCommand" CommandName="NextStep" runat="server" />        
            
        </div>
    </asp:Panel>
    
    
    <asp:Panel ID="Step3" CssClass="Step" Visible="false" runat="server">
        <div style="text-align: center;">
            <p>Account created.</p>
            <p>Click next to continue.</p>
            
            <asp:Button ID="step3NextButton" Text="Next &gt;" OnCommand="FormCommand" CommandName="NextStep" runat="server" />        
            
        </div>
    </asp:Panel>
    
    <asp:Panel ID="StepFinish" CssClass="Step" Visible="false" runat="server">
        <div style="text-align: center;">
            <h3>Complete!</h3>
            
            <p>Impact is now configured for use.</p>
            
            <asp:Button ID="finishButton" Text="Finish" OnCommand="FormCommand" CommandName="NextStep" runat="server" />        
            
        </div>
    </asp:Panel>

    </div>

</asp:Content>
